import request from '@/utils/request'

export function teaPage(data,pageNum,pageSize) {
  return request({
    url: '/teacher/page',
    method: 'post',
    data:data,
    params:{pageNum,pageSize}
  })
}

export function teaGetById(id) {
  return request({
    url: '/teacher/getById/'+id,
    method: 'get',
  })
}

export function teaSaveOrUpdate(data) {
  return request({
    url: '/teacher/saveOrUpdate',
    method: 'post',
    data
  })
}

export function teaDelete(id) {
  return request({
    url: '/teacher/delete/'+id,
    method: 'get',
  })
}

export function teaList() {
  return request({
    url: '/teacher/list',
    method: 'get',
  })
}
